package com.zmm.weblog.admin.convert;

import com.zmm.weblog.admin.model.vo.blog.FindBlogSettingsRspVO;
import com.zmm.weblog.admin.model.vo.blog.UpdateBlogSettingReqVo;
import com.zmm.weblog.common.domain.dos.BlogSettingsDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author:福禄寿
 * @Date:2024/5/9 下午9:42
 * @Des:weblog-springboot
 **/
@Mapper
public interface BlogSettingsConvert {

    /**
     * 初始化 convert实例
     */
    BlogSettingsConvert INSTANCE = Mappers.getMapper(BlogSettingsConvert.class);

    /**
     * 将VO转化为DO
     * @param bean
     * @return
     */
    BlogSettingsDo convertVO2DO(UpdateBlogSettingReqVo bean);

    FindBlogSettingsRspVO convertDO2VO(BlogSettingsDo bean);
}
